﻿body, html {
  font-size: 50px;
  padding: 0;
  margin: 0;
  background-color: #fff !important;
  font-family: 'Microsoft YaHei',arial,sans-serif,'Droid Sans Fallback';
}

/*css初始化*/
/*清除内外边距*/
body,h1,h2,h3,h4,h5,h6,hr,p,blockquote,dl,dt,dd,ul,ol,li,pre,form,fieldset,legend,button,input,textarea,th,td,img{
    margin: 0;
    padding: 0;
    border: medium none;
}
*{
    box-sizing:border-box;
}
/*重置列表元素*/
ul,li{
    list-style: none;
}
/*重置超链接元素*/
a{
    text-decoration: none;
    color: #333333;
}
a:hover{
    text-decoration: none;
}
/*重置图片元素*/
img{
    width: 100%;
    height: 100%;
    border: 0px;
    vertical-align:middle;
}
/*重置表格元素*/
table{
    border-collapse: collapse;
    border-spacing: 0;
}
input{
    outline: none;
    border: none;
}
button{
    border: none;
    outline: none;
    background-color: transparent;
}
p,span{
    font-size: 0.28rem;
}
.fx-spb{
    display: flex;
    justify-content: space-between;
}
.fx-col-spb{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.fx-jcfs{
    display: flex;
    justify-content: flex-start;
}
.tc{
    text-align: center;
}
.fl{
    float: left;
}
.fr{
    float: right;
}
/* 单行文本溢出显示省略号 */
.ell {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
/* 两行文本溢出显示省略号 */
.ell-2{
    word-break: break-all;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}
/* 底部导航栏样式 */
.nav-bar{
    display: flex;
    width: 100%;
    height: 50px;
    padding: 0;
    table-layout: fixed;
    border-top: 0;
    border-bottom: 0;
    position: fixed;
    z-index: 100;
    right: 0;
    left: 0;
    bottom: 0;
    background-color: #eee;
}
.nav-tab-item{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    overflow: hidden;
    width: 25%;
    height: 50px;
    text-align: center;
    vertical-align: middle;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: #929292;
    font-size: 0.22rem;
    padding: 8px 0 3px 0;
}
.nav-tab-item .nav-icon{
    display: inline-block;
    width: 24px;
    height: 24px;
    padding-top: 0;
    padding-bottom: 0;
    background-size: 24px 24px;
}
.nav-tab-item .icon-index{
    width: 0.46rem;
    height: 0.36rem;
}
.nav-tab-item .icon-classify{
    width: 0.4rem;
    height: 0.4rem;
}
.nav-tab-item .icon-cart{
    width: 0.36rem;
    height: 0.42rem;
}
.nav-tab-item .icon-my{
    width: 0.38rem;
    height: 0.42rem;
}
/* 所有页面头部样式 */
.top-title{
    height: 1rem;
    line-height: 1rem;
    width: 100%;
    position: fixed;
    top: 0;
    z-index: 99;
    background-color: #fff;
    border-bottom: 1px solid #ccc;
}
.top-title p{
    font-size: 0.4rem;
}
.top-title img{
    width: 0.4rem;
    height: 0.4rem;
    position: absolute;
    top: 50%;
    left: 0.4rem;
    transform: translateY(-50%);
}
/* 引入苹方字体 */
@font-face{
    font-family: 'myFont-Medium';
    src: url('../style/PingFang/PingFangSC-Medium.ttf');
}
@font-face{
    font-family: 'myFont-light';
    src: url('../style/PingFang/苹方黑体-细-简.ttf');
}
/* p{font-family: myFont-light, sans-serif;} */
.top-title,p{ font-family: myFont-Medium, sans-serif; }
